/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.order;

import com.thinkgem.jeesite.modules.hk.shop.entity.product.HkShopProduct;
import com.thinkgem.jeesite.modules.hk.shop.entity.shop.HkShopCoupon;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 乐购爆款订单Entity
 * @author 李欣荣
 * @version 2018-10-11
 */
public class HkUserBurstOrder extends DataEntity<HkUserBurstOrder> {
	
	private static final long serialVersionUID = 1L;
	private HkUser user;		// 用户
	private String state;		// 状态
	private String ordernumber;		// 订单编号
	private String burstId;		// 爆款id
	private HkShopCoupon coupon;		// 优惠券id
	private HkShopProduct product;		// 商品id
	private String num;		// 能量值
	
	public HkUserBurstOrder() {
		super();
	}

	public HkUserBurstOrder(String id){
		super(id);
	}

	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=11, message="状态长度必须介于 0 和 11 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=32, message="订单编号长度必须介于 0 和 32 之间")
	public String getOrdernumber() {
		return ordernumber;
	}

	public void setOrdernumber(String ordernumber) {
		this.ordernumber = ordernumber;
	}
	
	@Length(min=0, max=32, message="爆款id长度必须介于 0 和 32 之间")
	public String getBurstId() {
		return burstId;
	}

	public void setBurstId(String burstId) {
		this.burstId = burstId;
	}
	
	public HkShopCoupon getCoupon() {
		return coupon;
	}

	public void setCoupon(HkShopCoupon coupon) {
		this.coupon = coupon;
	}
	
	public HkShopProduct getProduct() {
		return product;
	}

	public void setProduct(HkShopProduct product) {
		this.product = product;
	}
	
	@Length(min=0, max=11, message="能量值长度必须介于 0 和 11 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
}